extends Control


var data = null

signal delete(data)
signal edit(data)
signal addShop(data)


func set_data(data):
	self.data = data
	
	var id = data["id"]
	$id.text = str(id)
	$name.text = data["name"]
	



# 点击删除
func _on_del_button_up():
	emit_signal("delete", data)


func _on_edit_button_up():
	emit_signal("edit", data)


func _on_addShop_button_up():
	emit_signal("addShop", data)
